#ifndef SELECTIO_H
#define SELECTIO_H

#include "db_cfg_g_def.h"
#include <QDialog>
#include "TABLEDEFINE.h"
#include "DbCfgFun.h"

namespace Ui {
    class SelectIo;
}

class SelectIo : public QDialog {
    Q_OBJECT
public:
    SelectIo(QWidget *parent = 0);
    ~SelectIo();
    void getio(IOTreeTypeS *sel_iom,QString &ioname);
	bool getok();
protected:
    void changeEvent(QEvent *e);
protected slots:
	void item_click(QTreeWidgetItem * item, int column);
	void item_doubleclick(QTreeWidgetItem * item, int column);
	void ack_selectio();
private:
    Ui::SelectIo *ui;
//	DbCfgFun		g_DbCfgFunObj;
	QTreeWidgetItem *  Item_Root;
	QList<QTreeWidgetItem *> items;
	IOTreeTypeS m_data;
	QString m_ioname;
	bool isok;
};

#endif // SELECTIO_H
